﻿@model ProductModel

@if (Model.Id == 0)
{
    <p class="text-muted">
        @T("Admin.Catalog.Products.AssociatedProducts.SaveBeforeEdit")
    </p>
    return;
}

@{
    var gridViewData = new ViewDataDictionary(this.ViewData);
    gridViewData["Parent"] = Model;
}

<div class="d-flex flex-column h-100">
    <div class="alert alert-info alert-dismissible">
        <ul class="mb-0">
            <li>@T("Admin.Catalog.Products.AssociatedProducts.Note1")</li>
            <li>@T("Admin.Catalog.Products.AssociatedProducts.Note2")</li>
        </ul>
        <button type="button" class="btn-close" data-dismiss="alert"></button>
    </div>

    <partial name="Grids/_Grid.AssociatedProducts" model="null" view-data="gridViewData" />
</div>